const TOKENKEY = "heima-toutiao-token";
const saveToken = (tokenObj) => {
  localStorage.setItem(TOKENKEY, JSON.stringify(tokenObj));
};
const removeToken = () => {
  localStorage.removeItem(TOKENKEY);
};
const getToken = () => {
  return JSON.parse(localStorage.getItem(TOKENKEY));
};
export { saveToken, removeToken, getToken };
